home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Gold Collection / Software Vault - The Gold Collection (American Databankers) (1993).ISO / cdr11 / cuj9303.zip / 1103110A < prev    next >
Text File  |  1993-06-21  |  393b  |  19 lines

  1. // fv1.cpp - a dynamic vector of float (with a possibly
  2. // non-zero low-bound) using a subscripting object
  3.  
  4. #include "fv1.h"
  5. #include <assert.h>
  6.  
  7. float float_vector::operator[](int i) const
  8.     {
  9.     assert(i >= low());
  10.     return float_array::operator[](i - low());
  11.     }
  12.  
  13. fa_index float_vector::operator[](int i)
  14.     {
  15.     assert(i >= low());
  16.     return float_array::operator[](i - low());
  17.     }
  18.  
  19.